import request from '@/utils/request'

/**
 * 查询产品
 */
export function getProductById (id) {
  return request.get(`/api/product/find/${id}`)
}

export function getAllProducts() {
  return request ({
    url: '/api/product/findAll',
    method: 'get'
  })
}